import Vue from 'vue'
export default {
	state:{
		currentUser:{
			get UserName(){
				return localStorage.getItem("Name");				
			},
			get UserToken(){				
				return "user111"
//				return localStorage.getItem("Token");
			},
			get UserID(){
				return 
			}
		}
	},
	mutations:{		
		setUser(state,{Name,Token}){
			localStorage.setItem("Name",Name);
			localStorage.setItem("Token",Name);
		}			
	},
	actions:{				
		userRegister(context,{vcCode,phone,pwd,token}){
//			this.$http.post("")
			alert("注册!")
		},
		userLogin(context,{phone,pwd,token}){
			console.log(phone+pwd+token);
			alert("登录!")
		}
		
	}
}
